﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using iShoppingBUS;

namespace iShopping.Manager
{
    public partial class PhiDangSanPham : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                txtPhi.Text = SanPhamBUS.LayPhiHienTaiBUS();
            }
        }

        protected void btnPhi_Click(object sender, EventArgs e)
        {
            bool phi = SanPhamBUS.ThayDoiPhiBUS(txtPhi.Text);
            if (phi == true)
            {
                lbPhi.Text = "Thay đổi thành công!";
            }
            else
            {
                lbPhi.Text = "Thay đổi thất bại!";
            }
        }
    }
}
